<template>
  <div class="xtx-home-page">
    <div class="container">
      <!-- 左侧分类 使用左侧侧边栏组件 -->
      <HomeCate />
      <!-- 轮播图 -->
      <HomeBanner />
      <!-- 新鲜数据 -->
      <HomeNew />
      <!-- 人气推荐 -->
      <HomeHot />
      <!-- 热门品牌 -->
      <HomeBrand />
    </div>
  </div>
</template>
<script>
import HomeCate from './components/home-cate.vue' // 导入侧边栏组件
import HomeBanner from './components/home-banner.vue'
import HomeNew from './components/home-new.vue'
import HomeHot from './components/home-hot.vue'
import HomeBrand from './components/home-brand.vue'

export default {
  name: 'Home',
  components: { HomeCate, HomeBanner, HomeNew, HomeHot, HomeBrand } // 注册左侧侧边栏组件
}
</script>
<style scoped lang='less'>
.xtx-home-page {
  .container {
    //PC端固定版心宽度
    width: 1240px;
    margin: 0 auto;
    position: relative;
  }
}
</style>
